package demo;

public class Test {
    public static void main(String[] args) {
        MyArraylist myArraylist = new MyArraylist();
        myArraylist.add(12);
        myArraylist.add(23);
        myArraylist.add(34);
        myArraylist.add(45);
        myArraylist.add(56);
        myArraylist.display();
        myArraylist.add(1,100);
        myArraylist.display();
        System.out.println(myArraylist.contains(99));
        System.out.println(myArraylist.indexOf(56));
        System.out.println(myArraylist.get(2));
        myArraylist.set(1,1);
        myArraylist.display();
        myArraylist.remove(1);
        myArraylist.display();
        myArraylist.clear();
        myArraylist.display();
    }

}
